
function convertQualificationAttachment(attachment: Record<string, any>): Record<string, any> {
  return {
    ...attachment,
    url:  attachment.url || attachment.ossUrl,
    filename: attachment.filename || attachment.fileName
  }
}

function convertQualificationAttachments(attachments: Record<string, any>[]): Record<string, any>[] {
  return attachments.map(convertQualificationAttachment)
}

export {
  convertQualificationAttachment,
  convertQualificationAttachments
}
